package com.test.www.service.impl;

import com.test.www.dao.UsersMapper;
import com.test.www.model.Users;
import com.test.www.service.UserService;
import com.test.www.utils.log.LogUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 登录接口实现
 */
@Service("Users")
@Transactional
public class UserServicelmpl  implements UserService {
    @Autowired
    private UsersMapper usermapper;

    @Override
    public Users login(String Loginname, String password) {
        return  usermapper.getRow(Loginname, password);
    }

    @Override
    public Users selectByPrimaryKey(Integer id) {
        return usermapper.selectByPrimaryKey( id );
    }
}
